package com.cutePet.pet.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.cutePet.pet.dao.LabelDao;
import com.cutePet.pet.domain.LabelDO;
import com.cutePet.pet.service.LabelService;



@Service
public class LabelServiceImpl implements LabelService {
	@Autowired
	private LabelDao labelDao;
	
	@Override
	public LabelDO get(Long labelId){
		return labelDao.get(labelId);
	}
	
	@Override
	public List<LabelDO> list(Map<String, Object> map){
		return labelDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return labelDao.count(map);
	}
	
	@Override
	public int save(LabelDO label){
		return labelDao.save(label);
	}
	
	@Override
	public int update(LabelDO label){
		return labelDao.update(label);
	}
	
	@Override
	public int remove(Long labelId){
		return labelDao.remove(labelId);
	}
	
	@Override
	public int batchRemove(Long[] labelIds){
		return labelDao.batchRemove(labelIds);
	}
	
}
